﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Axial.DOM;

namespace Axial.Tests
{
	[TestFixture]
	[JSSafe]
	public class ClosureTests : TestBase
	{
		[Test]
		public void BasicTest()
		{
			VerifyMethodOutput("Basic",
@"a = { };
a.a = 1;
this.TakeALambda(function()
{
	a.a = (a.a) + 1;
}
);");
		}
		public void Basic()
		{
			int a = 1;
			TakeALambda(() => a++);
		}
		public void TakeALambda(Action action)
		{
		}
	}
}
